/* eslint-disable react/react-in-jsx-scope */
import { MenuItem } from '/@/types/menu';
import Load from '/@/components/asyncComponent';
const errorRouter: MenuItem[] = [
  {
    path: '/error',
    name: 'menu.error',
    icon: 'icon-cuowu',
    children: [
      {
        path: '/error',
        redirect: '/error/404', //路由为/error重定向/error/404
        LayoutHide: true, //不渲染菜单
      },
      {
        path: '/error/404',
        element: Load(() => import('/@/views/NotFound/Error_404')),
        icon: 'icon-icon-test1',
        name: 'menu.404',
      },
      {
        path: '/error/403',
        icon: 'icon-icon-test',
        element: Load(() => import('/@/views/NotFound/Error_403')),
        name: 'menu.403',
      },
    ],
  },
];

export default errorRouter;
